class BasicConfig{
    public theRequest:any
    constructor(){
        this.GetRequest();
    }
    GetRequest(){//获取url中"?"符后的字符串
        let url = location.search;   
        this.theRequest = new Object();
        if (url.indexOf("?") != -1) {
            let str = url.substr(1);
            let strs = str.split("&");
            for (var i = 0; i < strs.length; i++) {
                this.theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
            }
        }
        return this.theRequest;
    }
}
export default BasicConfig